package com.zj.config;

import org.springframework.context.annotation.Bean;
import org.springframework.jdbc.datasource.DriverManagerDataSource;

import javax.sql.DataSource;

public class JdbcConfig {
    public JdbcConfig(){
        System.out.println("JdbcConfig create");
    }

    @Bean
    DataSource createDataSource(){
        System.out.println("createDataSource");
        return new DriverManagerDataSource();
    }
}
